import axios from 'axios';

let base = 'customer';



/**
 *  客户列表
 * Added by XWang 2018-06-20
 * */
export const customerList = params => {
    return axios.post(`${base}/list`, params);
};


/**
 *  客户列表导出
 * Added by XWang 2018-06-20
 * */
export const customerExport = params => {
    return axios.post(`${base}/export`, params, {responseType: 'arraybuffer'});
};



/**
 *  客户详情
 * Added by XWang 2018-06-20
 * */
export const customerInfo = params => {
    return axios.post(`${base}/info`, params);
};
